﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Hienthi : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string MaBL = Request["MABL"].ToString();

        string sql = "SELECT MASP FROM BINHLUAN WHERE MABL = @MABL";
        DataTable table = Database.GetData(sql, "@MABL", MaBL);
        string ma = "";
        foreach (DataRow row in table.Rows)
        {
            ma = row["MASP"].ToString();
        }
        Response.Redirect("MUAHANG.aspx?sanpham=" + ma);
    }
}